//Add to buildings.txts or wherever your builduings are

// Note these are in medmod 2 format so change the advance names to use it in another mod

IMPROVE_BLACKSMITH {
	DefaultIcon ICON_IMPROVE_BLACKSMITH
	Description DESCRIPTION_IMPROVE_BLACKSMITH
	EnableAdvance ADVANCE_BRONZE_WORKING
	ObsoleteAdvance ADVANCE_FLINTLOCK
	ProductionCost 600
	Upkeep 2
	ProductionPercent 0.1
}

IMPROVE_ELECTRIC_PLANT {
	DefaultIcon ICON_IMPROVE_ELECTRIC_PLANT
	Description DESCRIPTION_IMPROVE_ELECTRIC_PLANT
	EnableAdvance ADVANCE_ELECTRO_MAGNETISM   
	ProductionCost 1750
	Upkeep 4
	ProductionPercent 0.2
   	CommercePercent 0.1
}				

IMPROVE_SKYSCRAPERS {
	DefaultIcon ICON_IMPROVE_SKYSCRAPERS
	Description DESCRIPTION_IMPROVE_SKYSCRAPERS
	EnableAdvance ADVANCE_CORPORATION
	PrerequisiteBuilding IMPROVE_BANK
	PrerequisiteBuilding IMPROVE_ELECTRIC_PLANT
	ProductionCost 2000
	Upkeep 0
	CommercePercent 0.15
}

// Add this to your uniticon.txt file where the files with the prefix ICON_IMPROVE_ are. Even though Wes seems to have moved it from there so I don't think it matters where you put it.

ICON_IMPROVE_BLACKSMITH { FirstFrame "blacksmith.TGA" Movie "NULL" Gameplay "IMPROVE_BLACKSMITH_GAMEPLAY" Historical "IMPROVE_BLACKSMITH_HISTORICAL" Prereq "IMPROVE_BLACKSMITH_PREREQ" Vari "IMPROVE_BLACKSMITH_STATISTICS" Icon "blacksmith.TGA" LargeIcon "NULL" SmallIcon "NULL" StatText "IMPROVE_BLACKSMITH_STATISTICS" }

ICON_IMPROVE_ELECTRIC_PLANT { FirstFrame "electric plant.TGA" Movie "NULL" Gameplay "IMPROVE_ELECTRIC_PLANT_GAMEPLAY" Historical "IMPROVE_ELECTRIC_PLANT_HISTORICAL" Prereq "IMPROVE_ELECTRIC_PLANT_PREREQ" Vari "IMPROVE_ELECTRIC_PLANT_STATISTICS" Icon "electric plant.TGA" LargeIcon "NULL" SmallIcon "NULL" StatText "IMPROVE_ELECTRIC_PLANT_STATISTICS" }

ICON_IMPROVE_SKYSCRAPERS { FirstFrame "skyscraper.TGA" Movie "NULL" Gameplay "IMPROVE_SKYSCRAPERS_GAMEPLAY" Historical "IMPROVE_SKYSCRAPERS_HISTORICAL" Prereq "IMPROVE_SKYSCRAPERS_PREREQ" Vari "IMPROVE_SKYSCRAPERS_STATISTICS" Icon "skyscraper.TGA" LargeIcon "NULL" SmallIcon "NULL" StatText "IMPROVE_SKYSCRAPERS_STATISTICS" }

// Add this to your gl_str.txt file where the files with the prefix IMPROVE_ are.

IMPROVE_BLACKSMITH				"Blacksmith"
IMPROVE_ELECTRIC_PLANT				"Electric Plant"
IMPROVE_SKYSCRAPERS				"Skyscrapers"

// Add this to your junk_str.txt file where the files with the prefix DESCRIPTION_IMPROVE_  are.

DESCRIPTION_IMPROVE_BLACKSMITH			"junkstring_DESCRIPTION_IMPROVE_BLACKSMITH"
DESCRIPTION_IMPROVE_ELECTRIC_PLANT		"junkstring_DESCRIPTION_IMPROVE_ELECTRIC_PLANT"
DESCRIPTION_IMPROVE_SKYSCRAPERS			"junkstring_DESCRIPTION_IMPROVE_SKYSCRAPERS"

// Add this where the IMPROVE_building name_PREREQ lines are(note these are in alphabetical order). // still in junk_str.txt

IMPROVE_BLACKSMITH_PREREQ			"This Needs to be Hooked up to the Great Library"
IMPROVE_ELECTRIC_PLANT_PREREQ			"This Needs to be Hooked up to the Great Library"
IMPROVE_SKYSCRAPERS_PREREQ			"This Needs to be Hooked up to the Great Library"

// Add this to your greatlibrary.txt file (damn I hate looking through the great library file)

[IMPROVE_BLACKSMITH_PREREQ]
Requires:
<L:DATABASE_ADVANCES,ADVANCE_BRONZE_WORKING>Bronze Working<e>

Cost: {BuildingDB(Building[0]).ProductionCost} <L:DATABASE_CONCEPTS,CONCEPT_PRODUCTION>Production<e>
Upkeep: {BuildingDB(Building[0]).Upkeep} <L:DATABASE_CONCEPTS,CONCEPT_GOLD>Gold<e>
[END]

[IMPROVE_BLACKSMITH_STATISTICS]
Gives:
+{BuildingDB(Building[0]).ProductionPercent}% <L:DATABASE_CONCEPTS,CONCEPT_PRODUCTION>Production<e>
Obsolete:
<L:DATABASE_ADVANCES,ADVANCE_FLINTLOCK>Flintlock<e>
[END]

[IMPROVE_BLACKSMITH_GAMEPLAY]
Blacksmiths allow for large scale Metal Working.  This increases <L:DATABASE_CONCEPTS,CONCEPT_PRODUCTION>Production<e>, because people no longer have to do their own metal working.
[END]

[IMPROVE_BLACKSMITH_HISTORICAL]
Before Blacksmiths people would do their own Metal Working.  They would make their own weapons and other things, It was not rare to see a weapon break in the middle of a battle.  For this reason people often carried more than one weapon.  With Bronze working came organized professional Metal working.  No longer did people have to do their own metal working.  This increased the quality and quantity of metal.  As a result, <L:DATABASE_CONCEPTS,CONCEPT_PRODUCTION>Production<e> was increased.  When <L:DATABASE_ADVANCES,ADVANCE_FLINTLOCK>Flintlock<e> was discovered the blacksmith became obsolete, because metal weapons such as sword or maces were no longer needed.  Gunpowder weapons took over the battlefield, but they were made in specialty shops.
[END]

[IMPROVE_ELECTRIC_PLANT_PREREQ]
Requires:
<L:DATABASE_ADVANCES,ADVANCE_ELECTRO_MAGNETISM>Electro-Magnetism<e>

Cost: {BuildingDB(Building[0]).ProductionCost} <L:DATABASE_CONCEPTS,CONCEPT_PRODUCTION>Production<e>
Upkeep: {BuildingDB(Building[0]).Upkeep} <L:DATABASE_CONCEPTS,CONCEPT_GOLD>Gold<e>
[END]

[IMPROVE_ELECTRIC_PLANT_STATISTICS]
Gives:
+{BuildingDB(Building[0]).ProductionPercent}% <L:DATABASE_CONCEPTS,CONCEPT_PRODUCTION>Production<e>
+{BuildingDB(Building[0]).CommercePercent}% <L:DATABASE_CONCEPTS,CONCEPT_COMMERCE>gold<e>
[END]

[IMPROVE_ELECTRIC_PLANT_GAMEPLAY]
with an electric plant in your <L:DATABASE_CONCEPTS,CONCEPT_CITY>City<e> your citizens have access to <L:DATABASE_ADVANCES, ADVANCE_ELECTRICITY>Electricity<e>.  Electric power increases the efficiency of many companies. Thus their <L:DATABASE_CONCEPTS,CONCEPT_PRODUCTION>Production<e> increases.  many new companies came out and created electric devices, and this increases <L:DATABASE_CONCEPTS,CONCEPT_COMMERCE>Commerce<e> in the city.
[END]

[IMPROVE_ELECTRIC_PLANT_HISTORICAL]
In the beginning electricity was stored in huge extremely expensive batteries.  So, eventually someone decided to create electric power on a large scale in the late nineteenth century, and sell it to who ever needed it.  These power plants used either oil, or coal.  later on natural gas was also used.  At first the electric company went to a customers address an installed power lines and outlets, but eventually power lines were installed by the city government, and houses were built with power setups.  Hospitals, airports and other places that needed constant power, built emergency generators so they could stay in operation if there was ever a black out.  Electric power eventually spread to the masses, and by the end of the twentieth century nearly one hundred percent of the world population  had access to electricity.
[END]

[IMPROVE_SKYSCRAPERS_PREREQ]
<L:DATABASE_ADVANCES,ADVANCE_CORPORATION>Corporation<e>
<L:DATABASE_BUILDINGS,IMPROVE_BANK>Bank<e>
Cost: {BuildingDB(Building[0]).ProductionCost} <L:DATABASE_CONCEPTS,CONCEPT_PRODUCTION>Production<e>
Upkeep: {BuildingDB(Building[0]).Upkeep} <L:DATABASE_CONCEPTS,CONCEPT_GOLD>Gold<e>
[END]

[IMPROVE_SKYSCRAPERS_STATISTICS]
Gives:
+{BuildingDB(Building[0]).CommercePercent}% <L:DATABASE_CONCEPTS,CONCEPT_GOLD>Gold<e>
[END]

[IMPROVE_SKYSCRAPERS_GAMEPLAY]
[END]

[IMPROVE_SKYSCRAPERS_HISTORICAL]
[END]

/ Well that's it enjoy!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!